package com.multiplayer.entity;

import java.util.Date;
import java.util.List;

/**
 * 自习室实体类对应studyroom表
 * @author zhangwenhao 0.0.1
 *@author liutiehui 0.0.2 2020-5-8 23:10
 */


public class StudyRoom {
	//自习室编号
	private String Rno;
	//管理员编号
	private String Ano;
	//位置
	private String Rposition;
	//座位数量
	private int Rseatnum;
	//自习室状态
	private String Rstatus;
	//自习室空位数量
	private int Rfreeseat;
	//自习室开门时间
	private Date Rstime;
	//自习室关门时间
	private Date Retime;
	//管理员
	private Admin admin;
	//坐位
	private List<Seat> seats;
	
	public StudyRoom() {
		super();
	}
	
	
	
	public StudyRoom(String rno, String ano, String rposition, int rseatnum, String rstatus, int rfreeseat,
			Date rstime, Date retime) {
		super();
		Rno = rno;
		Ano = ano;
		Rposition = rposition;
		Rseatnum = rseatnum;
		Rstatus = rstatus;
		Rfreeseat = rfreeseat;
		Rstime = rstime;
		Retime = retime;
	}



	public String getRstatus() {
		return Rstatus;
	}



	public void setRstatus(String rstatus) {
		Rstatus = rstatus;
	}



	public String getRno() {
		return Rno;
	}
	public void setRno(String rno) {
		Rno = rno;
	}
	public String getAno() {
		return Ano;
	}
	public void setAno(String ano) {
		Ano = ano;
	}
	public String getRposition() {
		return Rposition;
	}
	public void setRposition(String rposition) {
		Rposition = rposition;
	}
	public int getRseatnum() {
		return Rseatnum;
	}
	public void setRseatnum(int rseatnum) {
		Rseatnum = rseatnum;
	}
	public int getRfreeseat() {
		return Rfreeseat;
	}
	public void setRfreeseat(int rfreeseat) {
		Rfreeseat = rfreeseat;
	}
	public Date getRstime() {
		return Rstime;
	}
	public void setRstime(Date rstime) {
		Rstime = rstime;
	}
	public Date getRetime() {
		return Retime;
	}
	public void setRetime(Date retime) {
		Retime = retime;
	}
	
	
	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	
	
	public List<Seat> getSeats() {
		return seats;
	}

	public void setSeats(List<Seat> seats) {
		this.seats = seats;
	}



	@Override
	public String toString() {
		return "StudyRoom [Rno=" + Rno + ", Ano=" + Ano + ", Rposition=" + Rposition + ", Rseatnum=" + Rseatnum
				+ ", Rstatus=" + Rstatus + ", Rfreeseat=" + Rfreeseat + ", Rstime=" + Rstime + ", Retime=" + Retime
				+ "]";
	}

	
	
}
